<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head> 
    <title>美发店</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<script type='text/javascript' src='dwr/engine.js'></script>    
    <script type='text/javascript' src='dwr/util.js'></script>    
    <script type="text/javascript" src="dwr/interface/UserDwr.js"></script>    
  </head>
  
  <body>
    <form action="login.action" method="post" name="form1">
         用户登录<br>
         姓名：  <input type="text" name="username"/><br>
         姓名：  <input type="password" name="password"/><br>
          <input type="button" value="test" onClick="validate()"/>
         <input type="submit" value="登录"/>
    </form>
	<script type="text/javascript">
		function validate(){
			var name=form1.username.value;
			var pass=form1.password.value;
			UserDwr.testDwr(name,pass,show);
		}
		
		function show(boolean){
		if(boolean)
			alert("您的账户已经存在");
			else
			alert("no exit");
		}
	</script>

  </body>
</html>
